/**
 * @fileOverview Show interface and handle events of a widget
 * @author Le Duc, Nam (lenam.k54@gmail.com)
 * @copyright VIT Coder group
 */
define([
    'backbone',
    'text!templates/widget/buttons/normalbutton.html'
], function (Backbone, _normalButtonTemplate) {
    return Backbone.View.extend({
        initialize: function () {
            this.template = _.template(_normalButtonTemplate);
            var html = this.template({ model: this.model.toJSON().fields});
            $(this.el).html(html);
        }
    });
});